#include <iostream>
#include <string>
using namespace std;

int main()
{
  string s1;
	size_t capacity = s1.capacity();
	cout << "start capacity:" << s1.capacity() << endl;
  s1.reserve(1000);
	for (int i = 0; i < 1000; ++i)
	{
		s1.push_back('a');
		if (s1.capacity() != capacity)
		{
			cout << "capacity change:" << s1.capacity() << endl;
			capacity = s1.capacity();
		}
	}
  /*string s2 = "abcdef\0";
  cout << s2.size() << endl;*/
  return 0;
}
